import options from '@/http/request.js';


export function listMyCoupon(data = {}) { //优惠卷列表
	return options.reqJson('get', `/wcWechart/getPersonCouponList`, data);
}
export function listMyOrder(data = {}) { //订单列表
	return options.reqJson('get', `/wcOrder/listForMobile`, data);
}
export function findMyOrder(id) { //查看订单详情
	return options.reqJson('get', `/wcOrder/${id}`);
}
export function updateMyOrder(data={}) { //更新订单
	return options.reqJson('put', `/wcOrder`,data);
}
export function refuseMyOrder(data={}) { //退款
	return options.reqJson('post', `/wcOrder/refuse`,data);
}
export function confirmReceiveGoods(orderId) { //确认收货
	return options.reqJson('get', `/wcOrder/confirmReceiveGoods/${orderId}`);
}
export function getSettingData(orderId) { //通用配置
	return options.reqJson('get', `/wcGeneralConfiguration/1`);
}
export function listWcComment(data={}) { //文创商品评价列表
	return options.reqJson('get', `/wcComment/list`,data);
}
export function listOrderInfo(data={}) { //查看已经评价的信息
	return options.reqJson('get', `/wcWechart/getCommentListByOrderId`,data);
}
export function addtWcComment(data={}) { //评价列表新增
	return options.reqJson('post', `/wcWechart/updateOrderState`,data);
}
export function afterSaleMyOrder(data={}) { //售后接口
	return options.reqJson('post', `/wcOrder/afterSale`,data);
}
export function getByOrderGoodsNumber(orderGoodsNumber) { //售后详情
	return options.reqJson('get', `/wcRefundRequest/getByOrderGoodsNumber/${orderGoodsNumber}`);
}
export function addLogistics(data = {}) { //添加物流
	return options.reqJson('post', `/wcRefundRequest/addLogistics`,data);
}
